package com.ykt.exception;

/**
 * 参数、业务异常，打印warn级别的日志
 *
 * @author long.hua
 * @version 1.0.0
 * @since 2015-12-08 23:00
 */
public class BusinessException extends RuntimeException {

    private int code;

    public BusinessException(int code, String message) {
        super(message);
        this.code = code;
    }

    public BusinessException(int code, String message, Throwable t) {
        super(message, t);
        this.code = code;
    }

    public int getCode() {
        return code;
    }
}
